﻿@model IFDB.ViewModels.PartialViewModels.HeadToHeadViewModel

@Html.Partial("~/Views/Shared/Match/_MatchPaginationControl.cshtml", Model)
        
<table class="MatchList">
    @foreach (var item in Model.HeadToHeadList)
    {
        <tr>
            <td style="width: 15%; white-space:nowrap;">
                @item.MatchDate.ToString("dd/MM/yyyy")
            </td>
            <td class="LeftTeam">
                @Html.ActionLink(item.Team1.TeamName, "Index", "Team", new { teamId = item.Team1.TeamId }, null)
            </td>
            <td class="Score">
                @Html.ActionLink(item.Team1FT + " - " + item.Team2FT, "Index", "Match", new { matchId = item.MatchId }, null)
            </td>
            <td class="RightTeam">
                @Html.ActionLink(item.Team2.TeamName, "Index", "Team", new { teamId = item.Team2.TeamId }, null)
            </td>
        </tr>
    }
</table>        